package com.cn.serverline.lineicp.productionLine.enums;

import cn.stylefeng.roses.kernel.rule.constants.RuleConstants;
import cn.stylefeng.roses.kernel.rule.exception.AbstractExceptionEnum;
import lombok.Getter;

/**
 * 工序工步异常枚举
 *
 * @author Gmr
 * @since 2024/7/31
 */
@Getter
public enum ProcessStepsException implements AbstractExceptionEnum {

	PROCESS_TYPE_DOES_NOT_EXIST(RuleConstants.BUSINESS_ERROR_TYPE_CODE + "01", "工序类型不存在"),
	ID_NOT_EXIST(RuleConstants.BUSINESS_ERROR_TYPE_CODE + "02", "ID不能为空"),
	PROCESS_STEPS_NOT_EXIST(RuleConstants.BUSINESS_ERROR_TYPE_CODE + "03", "此工步不存在"),
	PROCESS_STEPS_DO_NOT_EXIST(RuleConstants.BUSINESS_ERROR_TYPE_CODE + "04", "存在不存在的工步");

	private final String errorCode;

	private final String userTip;

	ProcessStepsException(String errorCode, String userTip) {
		this.errorCode = errorCode;
		this.userTip = userTip;
	}
}
